<div class="container-fluid" ng-controller="AccountCashController">
    <form name="bindForm" novalidate="novalidate">
        <div class="form-group">
            <label for="cash_type">提现方式</label>
            <select  class="form-control" id="cash_type" name="cash_type" ng-model="bindAccountCash.bindCash.cash_type" required>
                <option value="">请选择提现方式</option>
                <option value="1" ng-if="bindAccountCash.bindCash.cash_type_name=='网银'" selected >网银</option>
                <option value="1" ng-if="bindAccountCash.bindCash.cash_type_name!='网银'" >网银</option>
                <option value="2"  ng-if="bindAccountCash.bindCash.cash_type_name=='支付宝'" selected>支付宝</option>
                <option value="2"  ng-if="bindAccountCash.bindCash.cash_type_name!='支付宝'">支付宝</option>
                <option value="3"  ng-if="bindAccountCash.bindCash.cash_type_name=='微信'" selected>微信</option>
                <option value="3"  ng-if="bindAccountCash.bindCash.cash_type_name!='微信'">微信</option>
            </select>
            <div ng-show="bindForm.cash_type.$error.required" class="form-input-error">提现方式必须填写！</div>
        </div>
        <div class="form-group">
            <label for="cash_account">提现账号</label>
            <input type="text" class="form-control" id="cash_account" name="cash_account"  ng-model="bindAccountCash.bindCash.cash_account" placeholder="提现账号" required>
            <div  ng-show="bindForm.cash_account.$error.required" class="form-input-error">提现账号必须填写！</div>
        </div>
        <div class="form-group" ng-hide="bindAccountCash.bindCash.cash_type!=1" ng-show="bindAccountCash.bindCash.cash_type==1">
            <label for="cash_user_name">提现用户姓名</label>
            <input type="text" class="form-control" id="cash_user_name" name="cash_user_name"  ng-model="bindAccountCash.bindCash.cash_user_name" placeholder="提现银行姓名" ng-required="bindAccountCash.bindCash.cash_type==1">
            <div  ng-show="bindForm.cash_user_name.$error.required" class="form-input-error">提现用户姓名必须填写！</div>
        </div>
        <div class="form-group"  ng-hide="bindAccountCash.bindCash.cash_type!=1"  ng-show="bindAccountCash.bindCash.cash_type==1">
            <label for="bank_name">提现银行名称</label>
            <input type="text" class="form-control" id="bank_name" name="bank_name"  ng-model="bindAccountCash.bindCash.bank_name" placeholder="提现银行姓名" ng-required="bindAccountCash.bindCash.cash_type==1" >
            <div  ng-show="bindForm.bank_name.$error.required" class="form-input-error">提现银行名称必须填写！</div>
        </div>
        <div class="form-group"  ng-hide="bindAccountCash.bindCash.cash_type!=1" ng-show="bindAccountCash.bindCash.cash_type==1">
            <label for="bank_branch">支行</label>
            <input type="text" class="form-control" id="bank_branch" name="bank_branch"  ng-model="bindAccountCash.bindCash.bank_branch" placeholder="支行" ng-required="bindAccountCash.bindCash.cash_type==1">
            <div  ng-show="bindForm.bank_branch.$error.required" class="form-input-error">支行必须填写！</div>
        </div>
        <div class="form-group">
            <label for="cash_pwd">账户密码</label>
            <input type="password" class="form-control" id="cash_pwd" name="cash_pwd"  ng-model="bindAccountCash.bindCash.cash_pwd" placeholder="账户密码">
            <div  class="form-input-error">账户密码为平台的登录密码。</div>
            <div ng-show="bindForm.cash_pwd.$error.required" class="form-input-error">账户密码必须填写！</div>
        </div>
        <button  class="btn btn-default"  ng-disabled="bindForm.$dirty &&  bindForm.$invalid"  ng-click="bindAccountCash.bindAccountCash()">绑定</button>
    </form>
</div>